package zb.blog.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import zb.blog.base.bean.Result;
import zb.blog.service.IAboutMeService;

/**
 * @Author: BinZhang
 * @Date: 2018/5/20 15:49
 * @Description:主要用于前台，关于我和留言板
 */

@Controller
@RequestMapping("/aboutMe")
public class AboutMeController {
    @Autowired
    private IAboutMeService iAboutMeService;

    /**
     * @Author: BinZhang
     * @Date: 2018/5/20 1:07
     * @Description:获取个人信息（关于我） 1:userId
     * 2:类型为关于我
     */
    @RequestMapping("/getAboutMe")
    @ResponseBody
    public Result getMe() {
        return iAboutMeService.getArticleByType(1);
    }

}
